package com.aspose.cells;

class zbjc extends zcj {
   private float i = 0.0F;

   zbjc(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      if (this.e.l.a.size() > 0) {
         this.i = var5 / 2.0F * (1.0F - com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 10800.0F);
      } else {
         this.i = var5 / 2.0F * 0.7708333F;
      }

      float var6 = var1.i() / 2.0F - this.i;
      float var7 = var5 - 2.0F * var6;
      float var8 = var7 * var4 / var5;
      com.aspose.cells.b.a.b.a.ze var9 = new com.aspose.cells.b.a.b.a.ze();
      com.aspose.cells.b.a.b.zo[] var10 = new com.aspose.cells.b.a.b.zo[3];

      for(int var11 = 0; var11 < 24; ++var11) {
         var10[0] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbie.a((double)(var11 * 15))) * (double)var4 / 2.0D)), (float)((int)((double)(var3 + var5 / 2.0F) + -Math.sin(zbie.a((double)(var11 * 15))) * (double)var5 / 2.0D)));
         var10[2] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbie.a((double)((var11 + 1) * 15))) * (double)var4 / 2.0D)), (float)((int)((double)(var3 + var5 / 2.0F) + -Math.sin(zbie.a((double)((var11 + 1) * 15))) * (double)var5 / 2.0D)));
         var10[1] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbie.a(7.5D + (double)(var11 * 15))) * (double)var8 / 2.0D)), (float)((int)((double)(var3 + var5 / 2.0F) + -Math.sin(zbie.a(7.5D + (double)(var11 * 15))) * (double)var7 / 2.0D)));
         var9.a(var10[0], var10[1]);
         var9.a(var10[1], var10[2]);
      }

      return var9;
   }

   void b() {
      this.a.d();
      com.aspose.cells.b.a.b.zq var1 = this.e.k();
      var1.c(var1.h() - this.i);
      var1.d(var1.i() - this.i);
      if (!this.e.m().a()) {
         var1.a(-(this.e.m().f() / 2.0F), -(this.e.m().f() / 2.0F));
      }

      float var2 = zbul.a(this.e.n());
      if (this.e.p() != 7 && this.e.p() != 9) {
         if (this.e.p() == 0 || this.e.p() == 8) {
            var1.c(var1.h() - var2);
         }
      } else {
         var1.a(var1.f() + var2);
      }

      var1.a(var1.f() + (float)this.e.d().a() + this.i / 2.0F);
      var1.b(var1.g() + (float)this.e.d().b() + this.i / 2.0F);
      if (var1.i() < (float)this.e.n().d()) {
         float var3 = ((float)this.e.n().d() - var1.i()) / 2.0F;
         var1 = new com.aspose.cells.b.a.b.zq(var1.f(), var1.g() - var3, var1.h(), (float)this.e.n().d());
      }

      if (!this.e.t().equals("\n")) {
         zbul.a(this.a, this.e, var1, this.e.t(), this.e.s(), this.e.n(), this.e.o(), this.e.p(), this.e.q());
      }
   }
}
